//
//  RBSystemDetailGuessHeader.m
//  zhongzhenglu
//
//  Created by XL on 2022/7/15.
//

#import "RBSystemDetailGuessHeader.h"
#import "RBDefine.h"
#import <Masonry.h>
#import "RBThemeConfig.h"
#import "UIView+RBAdd.h"
#import "UIButton+RBAdd.h"

@interface RBSystemDetailGuessHeader()

@end

@implementation RBSystemDetailGuessHeader

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        UILabel *titleL = ({
            UILabel *view = UILabel.new;
            view.font = [UIFont boldSystemFontOfSize:Zoom(18)];
            view.text = @"猜您喜欢";
            view.textColor = [RBThemeConfig textBlackColor];
            view;
        });
        [self addSubview:titleL];
        [titleL mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(Zoom(15));
            make.centerY.mas_equalTo(0);
        }];
        
        UIButton *moreBtn = ({
            UIButton *view = UIButton.new;
            [view rbSetImage:[UIImage imageNamed:@"guessMore"]];
            view;
        });
        [self addSubview:moreBtn];
        [moreBtn mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.mas_equalTo(-Zoom(15));
            make.width.mas_equalTo(Zoom(30));
            make.top.bottom.mas_equalTo(0);
        }];
        
    }
    return self;
}

@end
